package org.amphiprion.descentv2assistant.filter;

import java.util.ArrayList;
import java.util.List;

public class IncludeFilter implements IdFilter {
	private String filterType;
	private final List<String> included = new ArrayList<String>();

	@Override
	public boolean contains(String id) {
		return included.contains(id);
	}

	public void checkTrait(String id) {
		if (included.contains(id)) {
			included.remove(id);
		} else {
			included.add(id);
		}
	}

	@Override
	public void clear() {
		included.clear();
	}

	@Override
	public String getFilterType() {
		return filterType;
	}

	public void setFilterType(String filterType) {
		this.filterType = filterType;
	}

}
